package com.jtjrenren.android.taxi.passenger.bean;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Created by Administrator on 2016/1/13.
 */
public class Order implements Serializable {
    public static final String DATE_FORMAT = "yyMMddHHmmss";

    private String orderID; //订单id
    private String orderSerial;//电召单号

    private int orderType;//订单来源类型
    private int orderCarType;//订单车种类： 出租车 约租车
    private int carType;//车类型： 豪华型 舒适型
    private int orderStatus;//订单状态
    private int orderPayStatus;//订单支付状态

    private String startLat, startLng, startAddr, createDate;
    private String endLat, endLng, endAddr, endDate;
    private String bookDate;//预约时间
    private String cancleReason; //取消原因
    private String orderUsedTime, orderMileage, orderAmount, orderTip = "0", orderPayWay; //用时，里程，金额，小费，支付方式

    private String driverId; //接单司机的id编号

    private String passgerPhone;

    private String remark;

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getPassgerPhone() {
        return passgerPhone;
    }

    public void setPassgerPhone(String passgerPhone) {
        this.passgerPhone = passgerPhone;
    }

    public String getOrderID() {
        return orderID;
    }

    public void setOrderID(String orderID) {
        this.orderID = orderID;
    }

    public String getOrderSerial() {
        return orderSerial;
    }

    public void setOrderSerial(String orderSerial) {
        this.orderSerial = orderSerial;
    }

    public int getOrderType() {
        return orderType;
    }

    public void setOrderType(int orderType) {
        this.orderType = orderType;
    }

    public int getOrderCarType() {
        return orderCarType;
    }

    public void setOrderCarType(int orderCarType) {
        this.orderCarType = orderCarType;
    }

    public int getCarType() {
        return carType;
    }

    public void setCarType(int carType) {
        this.carType = carType;
    }

    public int getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(int orderStatus) {
        this.orderStatus = orderStatus;
    }

    public int getOrderPayStatus() {
        return orderPayStatus;
    }

    public void setOrderPayStatus(int orderPayStatus) {
        this.orderPayStatus = orderPayStatus;
    }

    public String getStartLat() {
        return startLat;
    }

    public void setStartLat(String startLat) {
        this.startLat = startLat;
    }

    public String getStartLng() {
        return startLng;
    }

    public void setStartLng(String startLng) {
        this.startLng = startLng;
    }

    public String getStartAddr() {
        return startAddr;
    }

    public void setStartAddr(String startAddr) {
        this.startAddr = startAddr;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date date) {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_FORMAT);
        this.createDate = simpleDateFormat.format(date);
    }

    public String getEndLat() {
        return endLat;
    }

    public void setEndLat(String endLat) {
        this.endLat = endLat;
    }

    public String getEndLng() {
        return endLng;
    }

    public void setEndLng(String endLng) {
        this.endLng = endLng;
    }

    public String getEndAddr() {
        return endAddr;
    }

    public void setEndAddr(String endAddr) {
        this.endAddr = endAddr;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(Date endDate) {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_FORMAT);
        this.endDate = simpleDateFormat.format(endDate);
    }

    public String getBookDate() {
        return bookDate;
    }

    public void setBookDate(Date bookDate) {
        if (bookDate == null) {
            this.bookDate = null;
            return;
        }
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat(DATE_FORMAT);
        this.bookDate = simpleDateFormat.format(bookDate);
    }

    public String getCancleReason() {
        return cancleReason;
    }

    public void setCancleReason(String cancleReason) {
        this.cancleReason = cancleReason;
    }

    public String getOrderUsedTime() {
        return orderUsedTime;
    }

    public void setOrderUsedTime(String orderUsedTime) {
        this.orderUsedTime = orderUsedTime;
    }

    public String getOrderMileage() {
        return orderMileage;
    }

    public void setOrderMileage(String orderMileage) {
        this.orderMileage = orderMileage;
    }

    public String getOrderAmount() {
        return orderAmount;
    }

    public void setOrderAmount(String orderAmount) {
        this.orderAmount = orderAmount;
    }

    public String getOrderTip() {
        return orderTip;
    }

    public void setOrderTip(String orderTip) {
        this.orderTip = orderTip;
    }

    public String getDriverId() {
        return driverId;
    }

    public void setDriverId(String driverId) {
        this.driverId = driverId;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderID='" + orderID + '\'' +
                ", orderSerial='" + orderSerial + '\'' +
                ", orderType=" + orderType +
                ", orderCarType=" + orderCarType +
                ", carType=" + carType +
                ", orderStatus=" + orderStatus +
                ", orderPayStatus=" + orderPayStatus +
                ", startLat='" + startLat + '\'' +
                ", startLng='" + startLng + '\'' +
                ", startAddr='" + startAddr + '\'' +
                ", createDate='" + createDate + '\'' +
                ", endLat='" + endLat + '\'' +
                ", endLng='" + endLng + '\'' +
                ", endAddr='" + endAddr + '\'' +
                ", endDate='" + endDate + '\'' +
                ", bookDate='" + bookDate + '\'' +
                ", cancleReason='" + cancleReason + '\'' +
                ", orderUsedTime='" + orderUsedTime + '\'' +
                ", orderMileage='" + orderMileage + '\'' +
                ", orderAmount='" + orderAmount + '\'' +
                ", orderTip='" + orderTip + '\'' +
                ", orderPayWay='" + orderPayWay + '\'' +
                ", driverId='" + driverId + '\'' +
                ", passgerPhone='" + passgerPhone + '\'' +
                ", remark='" + remark + '\'' +
                '}';
    }
}
